#import <AppKit/AppKit.h>

int main()
{
	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
	id app=[NSApplication sharedApplication];

	NSWindow* w=[[NSWindow alloc]
		 initWithContentRect:NSMakeRect(5,5,200,200) styleMask:NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask backing:NSBackingStoreBuffered defer:NO];
	[w makeKeyAndOrderFront:nil];
	NSButton* b=[[NSButton alloc]init];
	[b setTitle: @"Hello World"];
	[w setTitle: @"Cocotron Test Program"];
	[b setFrame:NSMakeRect(50,51,100,90)];
	[[w contentView] addSubview: b];

//	[NSBundle loadNibNamed:@"NSSystemInfoPanel.nib" owner:app];
	[app run];
	
}

/* 

*** Uncaught exception <NSInvalidArgumentException> *** -setLevel: only defined for abstract class. Define -[X11Window setLevel:] in CGWindow.m:39!
*** Uncaught exception <NSInvalidArgumentException> *** +[X11Window windowWithWindowNumber:]: selector not recognized
*** Uncaught exception <NSInvalidArgumentException> *** +[CGContext createContextWithSize:window:]: selector not recognized
*** Uncaught exception <NSInvalidArgumentException> *** +[CGContext createBackingContextWithSize:context:deviceDictionary:]: selector not recognized

*/
